package com.transaction.manage.model.vo;

public class HandleVo {

    private String retCode;
    private String retMsg;

    /*统一错误编码*/
    public static final String ERROR_CODE = "9999";

    /*统一成功编码*/
    public static final String SUCCESS_CODE = "0000";

    public HandleVo() {
    }

    public HandleVo(String retCode) {
        this.retCode = retCode;
    }

    public HandleVo(String retCode, String retMsg) {
        this.retCode = retCode;
        this.retMsg = retMsg;
    }

    public static HandleVo error(String retMsg){
        return new HandleVo(ERROR_CODE,retMsg);
    }

    public static HandleVo ok(){
        return new HandleVo(SUCCESS_CODE);
    }


    public String getRetCode() {
        return retCode;
    }

    public void setRetCode(String retCode) {
        this.retCode = retCode;
    }

    public String getRetMsg() {
        return retMsg;
    }

    public void setRetMsg(String retMsg) {
        this.retMsg = retMsg;
    }

}
